package com.springboot.demo.seria_deseria.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author wangliyue
 * 2024/8/12
 */
@Data
@ApiModel("商品上架")
public class GoodsOnSaleParam {

    @ApiModelProperty("商品id")
    @NotNull(message = "商品id不能为空")
    private Integer goodsId;

    @ApiModelProperty("货品id")
    @NotNull(message = "货品id不能为空")
    @NotEmpty(message = "货品id不能为空")
    private Integer[] productIds;
}
